HardDiskQRemove
You can use theHardDiskQRemove
function to discontinue notification of your software when power to the internal hard disk is about to be turned off.
OSErr HardDiskQRemove(HDQueueElement *theElement);
theElement
- A pointer to the element for the hard disk power down queue that you wish to remove.
DESCRIPTION
TheHardDiskQRemove
function removes a queue element installed byHardDiskQInstall
. If thehdQType
field of the queue element is not set toHDPwrQType
,HardDiskQRemove
simply returns an error.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch
($A09E). The selector value forHardDiskQRemove
is 11 ($0B) in the low word of register D0. The pointer to theHDQueue
element is passed in register A0. The result code is returned in the low word of register D0.RESULT CODES
noErr 0 No error SEE ALSO
TheHDQueueElement
structure is defined in "Hard Disk Queue Structure," on page 6-27.The application-defined hard disk spindown function is described in "Hard Disk Spindown Function," on page 6-66.